﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataCentral.Forms;
using DataCentral.BusinessDataObjects;

namespace DataCentral.UsecaseControllers
{
    public class ChangePasswordUsecase
    {
        private ChangePasswordForm _FRMChangePassword;
        private ProfileUsecase _UCProfile;
        public ChangePasswordUsecase()
        {
            _UCProfile = new ProfileUsecase();
        }

        public void StartUsecase(UserBO userBO)
        {
            _FRMChangePassword = new ChangePasswordForm(this, userBO);
            _FRMChangePassword.ShowDialog();
        }

        public UserBO GetUserBO(Guid userID)
        {
            UserBO userBO = new UserBO();
            return userBO.GetUserBOByUserID(userID);
        }

        public void ShowUserProfile(UserBO userBO)
        {
            _FRMChangePassword.Close();
            _UCProfile.StartUsecase(userBO);
        }

    }
}
